package com.shchuangzhi.smartguard.core;

/**
 * Created by j_hu on 8/1/17.
 */

public class TeacherState {
    private int code;
    private String name;

    public int getCode() { return code; }
    public void setCode(int code) { this.code = code; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }

    public static String getStateName(DBHelper dbHelper, int state) {
        switch(state) {
            case Consts.STATE_TEACHER_IN: return Consts.STATE_TEACHER_IN_NAME;
            case Consts.STATE_TEACHER_OUT: return Consts.STATE_TEACHER_OUT_NAME;
            default: return "";
        }
    }
}
